<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加书籍</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            padding: 20px;
        }
        .form-container {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            max-width: 500px;
            margin: 0 auto;
        }
        .form-container input {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .form-container button {
            background-color: #007bff;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .form-container button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>添加书籍</h2>
        <form action="/books/addbook" method="post">
            <input type="text" name="bookname" placeholder="书名" required>
            <input type="text" name="author" placeholder="作者" required>
            <input type="text" name="publisher" placeholder="出版社" required>
            <input type="date" name="publishDate" placeholder="出版日期" required>
            <input type="number" step="0.01" name="price" placeholder="价格" required>
            <button type="submit">添加</button>
        </form>
    </div>
</body>
</html>